package com.cwj.demo.bean;

import org.springframework.stereotype.Component;

@Component("springUserManager")
public class UserManager {

    private String userName;

    public UserManager() {
        System.out.println("调用了无参构造器...");
    }

    public UserManager(String userName) {
        this.userName = userName;
        System.out.println("调用了有参构造器..." + userName);
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
